<?php
class News extends AppModel{
	public $name='News';	
	public $actsAs = array('Translate'=>array('title','description','content'));
	public $validate = array(		
		'title' => array(array('rule'=>'notEmpty','message'=>'Can not be empty!'),
						array('rule'=>array('unique','title'),'message'=>'data is already existed'))	
	);
	
	// Use a different model (and table)
    public $translateTable  = 'news_i18n';
	public $belongsTo = array(        
			'NewsCategory' => array(
			    'className'    => 'NewsCategory',
	'foreignKey'=>'parent_id',
			)
    	);  
	    	
   
    
}
?>
